import request from '@/utils/request'

// 添加版本
export function addVersion(data) {
  return request({
    url: '/backAdmin/merchantAppVersionApi/add',
    method: 'post',
    data: data
  })
}

// 删除版本
export function deleteVersion(merchantAppVersionIdList) {
  return request({
    url: `/backAdmin/merchantAppVersionApi/delete?merchantAppVersionIdList=${merchantAppVersionIdList}`,
    method: 'post',
  })
}

// 获取版本列表
export function getVersionList(query) {
  return request({
    url: '/backAdmin/merchantAppVersionApi/list',
    method: 'get',
    params: query
  })
}

// 修改版本
export function updateVersion(data) {
  return request({
    url: '/backAdmin/merchantAppVersionApi/update',
    method: 'post',
    data: data
  })
}
